using UnityEngine;
using System.Collections;

public class CameraBehavior : MonoBehaviour 
{
	public float Distance;
	public float Height;
	
	private GameObject m_go_Player;
	
	// Use this for initialization
	void Start () 
	{
		m_go_Player = GameObject.Find("Player");
	}
	
	// Update is called once per frame
	void Update () 
	{
		//Vector3.forward
		//Vector3 forward = transform.forward;
		transform.position = m_go_Player.transform.position - new Vector3(0, 0, 1) * Distance + new Vector3(0, 1, 0) * Height;
		
		Vector3 LookAt = m_go_Player.transform.position - transform.position;
		LookAt.Normalize();
		//transform.LookAt(LookAt, new Vector3(0, 1, 0));
		
	}
}
